package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("employee")
public class employee implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "employeeId", type = IdType.AUTO)
    private int employeeId;
    @TableField("employeeName")
    private String employeeName;
    @TableField("position")
    private String position;
    @TableField("departmentId")
    private int departmentId;
    @TableField("sex")
    private String sex;
    @TableField("addr")
    private String addr;
    @TableField(exist = false)
    private String departmentName;
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;
}
